
#pragma once

#include <boost/bind.hpp>
#include "../client-app/CheckThread.h"

class CApp {

	static Client::App::CCheckThread mCheckThread;

public :

	static void StartBackThread() { mCheckThread.Start(); }
	static void SendEmptyMessageToBackThread(int what) { mCheckThread.SendEmptyMessage(what); }
	static void StopBackThread() { 
		mCheckThread.SendEmptyMessage(APP_ACTION_EXIT);
		mCheckThread.Join();
	}
	static void ApplyAuthCodeForRegister(CString& authcode) {
		std::string s;
		mCheckThread.ApplyAuthCode(s);
		authcode = s.c_str();
	}
};